import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/subcontract-receipt/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/add',
    method: 'POST',
    data
  })
}

// 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/close',
    method: 'POST',
    data
  })
}

// 入库/送检
export function SubcontractWarehousInspectionAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/subcontractWarehousInspection',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/delete/' + data,
    method: 'DELETE'
  })
}

// 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/view/' + data,
    method: 'GET'
  })
}

// 委外入库明细列表
export function GetDailtListAPI(params) {
  return request({
    url: '/storage/subcontract-receipt-detail/list',
    method: 'GET',
    params
  })
}

// 委外订单列表
export function GetOrderListAPI(params) {
  return request({
    url: '/order//subcontracting-order/list',
    method: 'GET',
    params
  })
}

// 获取仓库
export function GetCkByIdAPI(params) {
  return request({
    url: '/production/warehouse/getCkById',
    method: 'GET'
  })
}

//查询入库送检弹窗列表
export function getReceiptCheckViewAPI(data) {
  return request({
    url: '/storage/subcontract-receipt/getReceiptCheckView/' + data,
    method: 'GET'
  })
}
